(function() {
    'use strict';
    angular
        .module('milkbeeApp')
        .factory('ApplyCard', ApplyCard)
        .factory('ModCard', ModCard);

    ModCard.$inject = ['$resource', 'DateUtils'];
    ApplyCard.$inject = ['$resource', 'DateUtils'];

    function ModCard ($resource, DateUtils) {
        var resourceUrl =  'api/modcard';

        return $resource(resourceUrl, {}, {
            'query': { method: 'GET', isArray: true}
        });
    }
    function ApplyCard ($resource, DateUtils) {
    	var resourceUrl =  'api/applycard';
    	
    	return $resource(resourceUrl, {}, {
    		'query': { method: 'GET', isArray: true}
    	});
    }
})();